package com.instasale.services;

import com.instasale.dao.FeatureDAO;
import com.instasale.models.Feature;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Set;

public class FeatureServiceImpl implements FeatureService {

    @Autowired
    private FeatureDAO featureDAO;

    @Override
    public List<Feature> listFeature() {
        return featureDAO.listFeature();
    }

    public Set<Feature> getByIds(Integer[] ids) {
        return featureDAO.getByIds(ids);
    }
}
